from tortoise.models import Model
from tortoise import fields
 
class User(Model):
    id = fields.IntField(pk=True)
    username = fields.CharField(max_length=50, unique=True, null=False)
    password = fields.CharField(max_length=255, null=False)
    phone = fields.CharField(max_length=20)
 
    class Meta:
        table = "user"